package junit;

import junit.framework.TestCase; 
import pass.Modulo;

public class ModuloTest extends TestCase {
	
	private Modulo modulo;
	
	protected void setUp() throws Exception {
		super.setUp();
		modulo = new Modulo(); 
	}
	
	protected void tearDown() throws Exception {
		
		super.tearDown(); 
	}
	
	public void testRemind() {
		this.assertEquals(modulo.modulo(0, 42), 0); 
		this.assertEquals(modulo.modulo(42, 1), 0); 
		this.assertEquals(modulo.modulo(127, 3), 1);
		try {
			modulo.modulo(127, 0);
			fail("Modulo zero do not raise exception.");
		} catch (Exception e) {
			
		}
	}

}